<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/11/22
  Time: 19:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实现JavaBean组件中对象属性值的打印</title>
</head>
<body>
<jsp:useBean id="student" scope="session" class="com.example.task02_demo02.Student"/>
<%--获取名字为student对象中属性为id的数值并打印--%>
经过参数赋值后获取到的学号是:<jsp:getProperty name="student" property="id"/><br>
经过参数赋值后获取到的姓名是:<jsp:getProperty name="student" property="name"/>
</body>
</html>
